package com.hxzy.vo;

/**
 * @author nick
 *
 * 对应Message实体类
 * VO：view object,用于给前端用户的对象
 */
public class MessageVo {
    private Integer id;
    private String topic;
    private String content;
    private String dateDialect;
    private String nickName;
    private String pic;
    private int replys;//评论数量

    public int getReplys() {
        return replys;
    }

    public void setReplys(int replys) {
        this.replys = replys;
    }

    @Override
    public String toString() {
        return "MessageVo{" +
                "id=" + id +
                ", topic='" + topic + '\'' +
                ", content='" + content + '\'' +
                ", dateDialect='" + dateDialect + '\'' +
                ", nickName='" + nickName + '\'' +
                '}';
    }

    public MessageVo() {
    }

    public MessageVo(Integer id, String topic, String content, String dateDialect, String nickName) {
        this.id = id;
        this.topic = topic;
        this.content = content;
        this.dateDialect = dateDialect;
        this.nickName = nickName;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDateDialect() {
        return dateDialect;
    }

    public void setDateDialect(String dateDialect) {
        this.dateDialect = dateDialect;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
}
